let xscj = [
    {
        key:"01",
        value:"国家级"
      },
      {
        key:"02",
        value:"省级"
      },
      {
        key:"03",
        value:"市级"
      },
      {
        key:"04",
        value:"县级"
      },
      {
        key:"05",
        value:"镇（乡、街道）级"
      },
      {
        key:"06",
        value:"村（社区）级"
      },
      {
        key:"07",
        value:"分级管理"
      },
 ];
let ssztxz=[
    {
        key:"01",
        value:"法定机关"
      },
      {
        key:"02",
        value:"授权组织"
      },
      {
        key:"03",
        value:"受委托组织"
      },
] ;
let wsblsd=[
    {
        key:"1",
        value:"互联网咨询"
      },
      {
        key:"2",
        value:"互联网收件"
      },
      {
        key:"3",
        value:"互联网预审"
      },
      {
        key:"4",
        value:"互联网受理"
      },
      {
        key:"5",
        value:"互联网办理"
      },
      {
        key:"6",
        value:"互联网办理结果信息反馈"
      },
      {
        key:"7",
        value:"互联网电子证照反馈"
      },
      {
        key:"9",
        value:"互联网电子证照反馈"
      },
];
let fwdx=[
    {
        key:"01",
        value:"自然人"
      },
      {
        key:"02",
        value:"企业法人"
      },
      {
        key:"03",
        value:"事业法人"
      },
      {
        key:"04",
        value:"行政机关"
      },
      {
        key:"05",
        value:"其他组织"
      },
      {
        key:"06",
        value:"社会组织法人"
      },
      {
        key:"07",
        value:"非法人企业"
      }
];
// 办理形式
let blxs=[
    {
        key:"1",
        value:"窗口办理"
      },
      {
        key:"2",
        value:"网上办理"
      },
      {
        key:"3",
        value:"快递申请"
      },
] ;
// 通办范围
let xbfw=[
    {
        key:"01",
        value:"全国"
      },
      {
        key:"02",
        value:"全省"
      },
      {
        key:"03",
        value:"全市"
      },
      {
        key:"04",
        value:"全县"
      },
      {
        key:"05",
        value:"全镇（乡、街道）"
      },
      {
        key:"06",
        value:"跨村（社区）"
      },
      {
        key:"07",
        value:"跨村（社区）"
      }
];
let sbbz=[
    {
        key:"01",
        value:"就近办"
      },
      {
        key:"02",
        value:"网上办"
      },
      {
        key:"03",
        value:"网上办"
      },
      {
        key:"04",
        value:"马上办"
      }
];
let frtdrq=[
    {
        key:"01",
        value:"中小企业"
      },
      {
        key:"02",
        value:"民营企业"
      },
      {
        key:"03",
        value:"民营企业"
      },
      {
        key:"04",
        value:"个体工商户"
      },
      {
        key:"05",
        value:"社会组织"
      },
      {
        key:"06",
        value:"困难企业"
      },
      {
        key:"07",
        value:"重点企业"
      },
      {
        key:"08",
        value:"高新技术企业"
      },
      {
        key:"09",
        value:"其他"
      }
];
let frjyhd=[
    {
        value: "开办企业",
        key: "01",
      },
      {
        value: "申请资质",
        key: "02",
      },
      {
        value: "投资立项",
        key: "03",
      },
      {
        value: "扩大生产",
        key: "04",
      },
      {
        value: "引进人才",
        key: "05",
      },
      {
        value: "办理社保",
        key: "06",
      },
      {
        value: "申请专利",
        key: "07",
      },
      {
        value: "纳税缴费",
        key: "08",
      },
      {
        value: "申请货款",
        key: "09",
      },
      {
        value: "申请破产",
        key: "10",
      },
      {
        value: "其他",
        key: "11",
      },
];
let zrrtdrq=[
    {
        value: "高校毕业生",
        key: "01",
      },
      {
        value: "人才",
        key: "02",
      },
      {
        value: "老年人",
        key: "03",
      },
      {
        value: "残疾人",
        key: "04",
      },
      {
        value: "特困家庭",
        key: "05",
      },
      {
        value: "儿童青少年",
        key: "06",
      },
      {
        value: "妇女",
        key: "07",
      },
      {
        value: "农民",
        key: "08",
      },
      {
        value: "外国人",
        key: "09",
      },
      {
        value: "港澳台侨",
        key: "10",
      },
      {
        value: "其他",
        key: "11",
      },
];
let zrrrssj=[
    {
        value: "升学",
        key: "01",
      },
      {
        value: "工作",
        key: "02",
      },
      {
        value: "购房",
        key: "03",
      },
       {
        value: "婚姻",
        key: "04",
      },
      {
        value: "生育",
        key: "05",
      },
       {
        value: "失业",
        key: "06",
      },
       {
        value: "创业 ",
        key: "07",
      },
      {
        value: "迁居 ",
        key: "08",
      },
       {
        value: "退休 ",
        key: "09",
      },
       {
        value: "后事",
        key: "10",
      },
];
let tbjblzt=[
    {
        key:"1",
        value:"草稿"
      },
      {
        key:"2",
        value:"收件"
      },
      {
        key:"3",
        value:"预受理"
      },
      {
        key:"4",
        value:"预受理退回"
      },
      {
        key:"5",
        value:"受理"
      },
      {
        key:"6",
        value:"补齐补正"
      },
      {
        key:"7",
        value:"不予受理"
      },
      {
        key:"8",
        value:"在办"
      },
      {
        key:"9",
        value:"挂起"
      },
      {
        key:"10",
        value:"办结"
      },
      {
        key:"11",
        value:"转报办结"
      },
      {
        key:"12",
        value:"作废办结"
      },
      {
        key:"13",
        value:"退件"
      },
]
let count = (item,dataVal) => {
    let data = dataVal.find((it) => {
        return it.key == item
    })
    return data && data.value ? data.value : ""
};
let count2 = (item,dataVal) => {
    let data = dataVal.find((it) => {
        return it.dictValue == item
    })
    return data && data.dictName ? data.dictName : ""
};
export const countxscj = (item) => {
    let data = xscj.find((it) => {
        return it.key == item
    })
    return data && data.value ? data.value : ""
};
export const countssztxz = (item) => {
    let data = ssztxz.find((it) => {
        return it.key == item
    })
    return data && data.value ? data.value : ""
};

export const countwsblsd = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(",");
        list.forEach((ite)=>{
           datalast+=count(ite,wsblsd)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countfwdx = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,fwdx)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countblxs = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,blxs)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countxbfw = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,xbfw)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countsbbz = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,sbbz)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countfrtdrq = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,frtdrq)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countfrjyhd = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,frjyhd)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countzrrtdrq = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,zrrtdrq)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countzrrrssj = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count(ite,zrrrssj)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};
export const countzt = (item,data) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count2(ite,data)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};

export const countbjblzt = (item) => {
    let datalast=""; 
    if(item){
        let list= item.split(","); 
        list.forEach((ite)=>{
           datalast+=count2(ite,tbjblzt)+","
        })
    }
    datalast=datalast.substring(0, datalast.length - 1);  
    return datalast?datalast:"无"
};